package com.elric.mall.mapper;

import com.elric.mall.model.ProjectEntityNew;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ProjectEntityNewDao {
    int deleteByPrimaryKey(String key);

    int insertBase(ProjectEntityNew record);

    int insertExtend(ProjectEntityNew record);

    ProjectEntityNew selectByPrimaryKey(String key);

    List<ProjectEntityNew> findAll();

    int updateByPrimaryKey(ProjectEntityNew record);
    int updateByFontEnd(ProjectEntityNew record);

    List<ProjectEntityNew> findOtherDb();

    List<ProjectEntityNew> selectAllProject();

    /**
     *  数据同步脚本
     */
    int initBaseInfo();
    int initZzjg();
    int initNltx();
    int initPrevinces();
    int initProjectInfo();
    int initExtendInfo();
    int initZztx();
    int initImplementation();
    int initProjectpszz();
    int initBasembtx();
    int initResourceProtection();
    int initBaseSsly();
    int initFundingInvestment();
    int initLeadDoor();
    int initBranchContact();
    int initGhjzdspqx();
    int initBaseJfqd();
    int initBaseSsgh();
    int initBaseZzjg();
    int initConstructionPeriod();
    int initTextConstruction();
    int initLhjszb();
    int initTextSort();
    int initUploadAnnex();

    int deleteZztx();
    int deleteZzjg();
    int deleteNltx();
    int deleteBaseInfo();
    int deleteProjectInfo();
    int deletePrevinces();
    int deleteImplementation();
    int deleteProjectpszz();
    int deleteBasembtx();
    int deleteResourceProtection();
    int deleteBaseSsly();
    int deleteFundingInvestment();
    int deleteLeadDoor();
    int deleteBranchContact();
    int deleteGhjzdspqx();
    int deleteBaseJfqd();
    int deleteBaseSsgh();
    int deleteBaseZzjg();
    int deleteConstructionPeriod();
    int deleteTextConstruction();
    int deleteLhjszb();
    int deleteTextSort();
    int deleteUploadAnnex();
    int deleteExtendInfo();
}